export function compareWithCurrentTime(timestamp) {
	const currentTime = new Date().getTime();
	const timeDiff = currentTime - timestamp;
	const oneMinute = 60 * 1000;
	const oneHour = 60 * oneMinute;
	const oneDay = 24 * oneHour;
	const oneMonth = 30 * oneDay;
	const threeMonths = 3 * oneMonth;

	if (timeDiff <= oneMinute) {
		return "1 分钟";
	} else if (timeDiff <= oneHour) {
		return `${Math.floor(timeDiff / oneMinute)} 分钟`;
	} else if (timeDiff <= oneDay) {
		return `${Math.floor(timeDiff / oneHour)} 小时`;
	} else if (timeDiff <= oneMonth) {
		return `${Math.floor(timeDiff / oneDay)} 天`;
	} else if (timeDiff <= threeMonths) {
		return `${Math.floor(timeDiff / oneMonth)} 月`;
	} else {
		return null;
	}
}